//
//  DataDeviceStatusModel.m
//  SmartWaterFilter
//
//  Created by JianWei Chen on 17/2/26.
//  Copyright © 2017年 JianWei Chen. All rights reserved.
//

#import "DataDeviceStatusModel.h"

@implementation DataDeviceStatusModel

- (instancetype)initWithFunctionCode:(NSString *)code data:(NSString *)dataString mac:(NSString *)macAddress
{
    if ([super initWithFunctionCode:code data:dataString mac:macAddress]) {
        //000600000000000004000000040000000400000004000000040000ceeeee000970188001
        if (dataString.length != 10) {
            NSLog(@"数据解析存在错误：1806");
            return nil;
        }
        
//        self.progress = [NSString getValueByHexString:dataString range:NSMakeRange(0, 2)];
//        self.windowDynamic = [NSString getValueByHexString:dataString range:NSMakeRange(2, 2)];
//        self.windowSpeed = [NSString getValueByHexString:dataString range:NSMakeRange(4, 2)];
        
        
    }
    return self;
}
@end
